package com.yykj.hospital.server.model.repository;

import com.yykj.common.enums.HospitalAdminType;
import com.yykj.hospital.server.model.entity.HospitalAdmin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface HospitalAdminRepository extends JpaRepository<HospitalAdmin,Integer>, JpaSpecificationExecutor<HospitalAdmin> {
    HospitalAdmin findFirstByUsername(String username);
}
